@import "header.html"
<link rel="stylesheet" href="../css/select_city.css">
<body>
<header class="fxj-header">
    <back></back>
    <h1 class="fxj-title">选择城市或目的地</h1>
</header>

<main id="main">
    <div class="search-box">
        <label class="search-ipt">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-search-o"></use>
            </svg>
            <input id="iptSearch" type="search" placeholder="请输入城市或目的地" @keyup="inputCity">
        </label>
        <svg class="icon clear-text" aria-hidden="true" @click="clearIpt">
            <use xlink:href="#icon-cha-copy"></use>
        </svg>
    </div>
    <div v-cloak class="suggest" v-show="!!proposeCity" v-for="city of proposeCity" @click="selectCity(city.id,city.name)">
        <span v-text="city.name"></span>
        <svg class="icon clear-text" aria-hidden="true">
            <use xlink:href="#icon-you"></use>
        </svg>
    </div>
    <div class="container-title">
        <svg class="icon clear-text" aria-hidden="true">
            <use xlink:href="#icon-feiji"></use>
        </svg>
        热门城市或目的地
    </div>
    <div class="hot-city">
        <span v-cloak class="city" v-for="city of hotCity" @click="selectCity(city.value,city.text)">{{city.text}}</span>
    </div>
    <div class="container-title">
        全部省份
    </div>
    <div class="all-city" id="all-city">
        <span class="city" :class="{active:province.active}" v-for="(province,i) of allCity"
              @click="setSelectProvince($event,province)" v-text="province.text"></span>
    </div>
    <div class="container-title" v-cloak v-if="!!selectProvince">{{selectProvince.text}}</div>
    <div class="all-city-show">
        <span class="city" v-cloak @click="selectCity(city.value,city.text)" v-for="city of subCity">{{city.text}}</span>
    </div>

</main>

@import "js.html"
<script src="../script/citys.js"></script>
<script src="../lib/js/search-city.js"></script>
<script src="../script/select_city.js"></script>
</body>
@import "footer.html"